<!DOCTYPE html>
<html>
<head>
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->resource->path('lib') . "/bootstrap/js/bootstrap.min.js"); ?>
    <?php Yii::app()->clientScript->registerCssFile(Yii::app()->resource->path('css').'/style1.css');?>
    <?php Yii::app()->clientScript->registerCssFile(Yii::app()->resource->path('lib') . "/bootstrap/css/bootstrap.min.css") ?>
    <?php Yii::app()->clientScript->registerCssFile(Yii::app()->resource->path('css') . "/style.css") ?>
    <link  rel="shortcut icon"  href="<?php echo Yii::app()->resource->path('')?>/images/favicon.ico"  />
    
    <!-- 谷歌分析代码 -->
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-50888303-4', 'auto');
      ga('send', 'pageview');
    </script>
    
    <style type="text/css">
       body{
       	    min-width:1200px;
       }
       .region.region-signup .btn.btn-send-email {
            border: 0px;
            background-color: #d40d12;
            color: #fff;
            padding-top: 8px;
            padding-bottom: 4px;
            height: 34px;
        }
        .region.region-about-list .list-title{
        	font-weight:bold;
        }
        .region.region-about-list .info-list li a{
        	color:#333;
        }
        @keyframes flashAN {
            0% {
                background-color: rgba(255, 255, 102, 0);
            }
            5% {
                background-color: rgba(255, 255, 102, 1);
            }
            50% {
                background-color: rgba(255, 255, 102, 0);
            }
        }

        @-moz-keyframes flashAN /* Firefox */
        {
            0% {
                background-color: rgba(255, 255, 102, 0);
            }
            5% {
                background-color: rgba(255, 255, 102, 1);
            }
            50% {
                background-color: rgba(255, 255, 102, 0);
            }
        }

        @-webkit-keyframes flashAN /* Safari 和 Chrome */
        {
            0% {
                background-color: rgba(255, 255, 102, 0);
            }
            5% {
                background-color: rgba(255, 255, 102, 1);
            }
            50% {
                background-color: rgba(255, 255, 102, 0);
            }
        }

        @-o-keyframes flashAN /* Opera */
        {
            0% {
                background-color: rgba(255, 255, 102, 0);
            }
            5% {
                background-color: rgba(255, 255, 102, 1);
            }
            50% {
                background-color: rgba(255, 255, 102, 0);
            }
        }

        .flash-value {
            animation: flashAN 3s;
            -moz-animation: flashAN 3s; /* Firefox */
            -webkit-animation: flashAN 3s; /* Safari 和 Chrome */
            -o-animation: flashAN 3s; /* Opera */
        }
        .last{
            margin: 0 0 0 30px;
        }
        .lc{
            margin: 15px 0 0 0;
        }
        .input-group{
             box-shadow: inset 5px 5px 5px rgba(0,0,0,.05);
        }  
        .myac-nav-ul{
            padding: 0 0 0 30px;
            border-top: 1px solid #DDD;
        }     
        .myac-nav-ul li{
            font-size: 12px;
            font-family: 'Droid Sans';
            font-weight: bold;
            width: 160px; 
            text-align: center;
        }       
        .myac-nav-ul li a{
            color: #000;
        }
       .list_two{
        margin:0px 160px 0 50px; 
        padding: 0;
}
        .list_thr{
            margin: 0 320px 0 50px;
            padding: 0;
        }
        .left-mune{
            height:100%;
            width: 240px;
            float: left;
            background: #FCFCFC;
        }
        .region-sub-footer{
        }
        .btn-inline-block-left{
            background: url(<?php echo Yii::app()->resource->path('img')?>/login-back.jpg);
        }
        .register{
            background: url(<?php echo Yii::app()->resource->path('img')?>/register-back.jpg);
        }
    </style>
</head>
<body>
<div class="region region-header">
    <div class='container'>
        <div class='header'>
            <a class='logo' href='http://www.egunner.com'><img
                    src="<?php echo Yii::app()->resource->path('img') ?>/logo.png"></a>
            <?php
            if (Yii::app()->user->isGuest) {
                ?>
                <div class="btn-inline-block">
                    <a class="btn btn-default btn-inline-block-left"
                       href="<?php echo Yii::app()->baseUrl . Yii::app()->user->loginUrl ?>" role="button"></a>
                    <a class="btn btn-default register" href="http://egunner.com/register.php" role="button"  target="_blank"
                       role="button"></a>
                </div>
            <?php } else {
                ?>
                <div class='login-status'>
                    <span>Welcome</span>
                    <span class='welcome'><?php echo Yii::app()->user->name ?></strong>
                    <span class='separator'>|</span>
                    <?php 
                    if(!empty($this->bids)){
                        $count=$this->bids[0]->bid_num;
                        if(!empty($this->bids[1])){
                            $count+=$this->bids[1]->bid_num;
                        }
                        echo $count;
                    }                  
                    ?> bids
                    <span class='separator'>|</span>
                    <a href='<?php echo Yii::app()->baseUrl . "/myaccount/index/" ?>' class='myaccount'>My Account</a>
                    <span class='separator'>|</span>
                    <a href='<?php echo Yii::app()->baseUrl . "/login/logout/" ?>' class='logout'>Logout</a>
                </div>
                <?php
                        $unpaids=Yii::app()->user->getFlash("have unpaid");
                        if (!empty($unpaids)){
                ?>
                <div style="position:absolute;right:10px;bottom:0px;margin-top:10px;">You have <?php echo $unpaids?> unpaid win</div>
                <?php }?>
                
            <?php } ?>
        </div>
    </div>
</div>
<div class="region region-nav">
    <div class='container'>
        <div class="row">
            <nav class="navbar navbar-default nav-justified navbar-margin-mine">
                <?php
                $linkOptions=array();
                $linkOptions['target']='_blank';
                $this->widget('application.components.widgets.CMemuPlus', array(
                        'items' => array(
							array('label' => 'HOME',  'url' => 'http://www.egunner.com'),
                            array('label' => 'BUY BIDS', 'url' => array('/buybid')),
                            array('label' => 'MY ACCOUNT', 'url' => array('/myaccount/index', 'view' => 'about')),
                            array('label' => 'FAQ', 'url' => Yii::app()->baseUrl.'/Index/faq'),
							array('label' => 'HOW IT WORKS', 'url' => Yii::app()->baseUrl.'/Index/Howitworks'),
                            array('label'=>'PENNY AUCTION HOME','url'=>'http://pa.egunner.com'),
                            //array('label'=>'HOW IT WORKS','url'=>array('/site/login'),),
                        ),
                    )
                ); ?>
                <form class="navbar-form navbar-right navbar-form-search" role="search">
                    <div class="input-group">
                        <input type="text" class="form-control" aria-label="..." placeholder="Browse Auctions...">

                        <div class="input-group-btn">
                            <button type="button" class="btn dropdown-toggle btn-category" data-toggle="dropdown"
                                    aria-haspopup="true" aria-expanded="false" onclick='hide()'>Category<span class="caret" ></strong></p>
                            </button>
                            <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenu1">
                                <li>
                                    <a href="<?php echo Yii::app()->baseUrl ?>/c-status-live" onmouseover="hide()">Live Auctions</a>
                                </li>
                                <?php
                                foreach ($this->category_list as $cat) {
                                    $href="list2(".$cat->id.")";
                                    // var_dump($this->category_category_relations);exit;
                                    // Yii::app()->baseUrl . '/c-'.urlencode($cat->title).'-'.$cat->id
                                    foreach ($this->category_category_relations as $v) {
                                        
                                            if($v->category_id==$cat->id){
                                                if($v->category->title!="bidpack"){
                                                    echo CHtml::openTag('li');
                                                    echo CHtml::openTag('a', array('href' =>Yii::app()->baseUrl . '/c-'.urlencode($cat->title).'-'.$cat->id ,'class'=>'list_one','value'=>$cat->id,'onmouseover'=>$href));
                                                    echo $cat->title;
                                                    echo CHtml::closeTag('a');
                                                    echo CHtml::closeTag('li');
                                                } 
                                            }
                                        
                                    }
                                    }
                                
                                
                                ?>
                                <li>
                                    <a href="<?php echo Yii::app()->baseUrl ?>/c-status-closed" onmouseover="hide()">Closed Auctions</a>
                                </li>
                            </ul>

                            <ul class="dropdown-menu list_two" style="display: none;" id='a' >
                            </ul>
                            <ul class="dropdown-menu list_thr" style="display: none;" id='a' >
                            </ul>
                        </div>
                        <!-- /btn-group -->
                    </div>
                    <!-- /input-group -->
                </form>
            </nav>
        </div>
    </div>
</div>

<div class='container region region-base region-breadcrumbs'>
    <?php
    $this->widget('application.components.widgets.CBreadcrumbsPlus', array(
        'links' => $this->breadcrumbs
    ));
    ?>
</div>
<div class="container content region region-base">
    <div class='row'>
        <div class="list_remi ">
    <div class="hdrs_cont">
        <h1 class="prel_lite">My Account</h1>
    </div>
        </div>
        <div class='row row-main'>
            <div class="left-mune">
                <?php
                   $this->widget('application.components.widgets.CMenuLeftPlus', array(
                       'dataProvider' => $this->navmenu,
                      
                   ));
                ?>

            </div>
                <!--
                <div class='myac-nav'>
                    <ul class="nav nav-tabs myac-nav-ul one">
                      <li class="">
                        <a href="javascript:;" id="Account">My Account</a>
                      </li>
                      <li><a href="javascript:;" id="Dibzees">My Dibzees</a></li>
                    </ul>
                    <ul class="nav nav-tabs myac-nav-ul Account">
                      <li class="">
                        <a href="<?php echo Yii::app()->baseUrl ?>/myaccount/myinformation">My Information</a>
                      </li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/changepassword">change password</a></li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/notification">My Avatar</a></li>
                      <li><a href="#">Refer a Friend</a></li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/notification">Notifications</a></li>
                    </ul>
                    <ul class="nav nav-tabs myac-nav-ul Dibzees">
                      <li class="">
                        <a href="<?php echo Yii::app()->baseUrl ?>/myaccount/Biddinghistory">Bidding History</a>
                      </li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/changepassword">Watchlist</a></li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/notification">Won Auctions</a></li>
                      <li><a href="#">Refer a Friend</a></li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/notification">Bid Credit History</a></li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/notification">Auction Limits</a></li>
                      <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/notification">Order History</a></li>
                    </ul>

                </div>
            -->
            
            <div class='col-sm-8 myaccount-content'>
               <?php echo $content; ?>
            </div>
</div>


<script type="text/javascript">

function hide(){
    $('.list_two').hide();
    $('.list_thr').hide();

}
function list2(id){
        $('.list_two').show();
        $(".list_thr").empty();
        $('.list_thr').hide();
        $.post('<?php echo yii::app()->baseUrl?>/Ajax/returncategory2',{'category_parent_id':id},function(data){
        $(".list_two").empty();
        $(".list_thr").empty();
        $('.list_two').append(data);
        })
}
function list3(id){
        $(".list_thr").empty();
        $('.list_thr').show();
        $.post('<?php echo yii::app()->baseUrl?>/Ajax/returncategory3',{'category_parent_id':id},function(data){
        $(".list_thr").empty();
        $('.list_thr').append(data);
        })
}
$("#Account").mouseover(function(){
    $(".Account").show();
    $(".Dibzees").hide();

})
$("#Dibzees").mouseover(function(){
    $(".Dibzees").show();
    $(".Account").hide();

})

    //
    /*
     $('#featured-auction .auction-pool').shelf({
     'limit':10,
     'putOnValidate':function(auction){
     if(auction.title == 'tttt'){
     return false;
     }
     return true;
     },
     'demand':{
     'type':'featured'
     },
     'auctionTemplate':<?php //echo $temp?>
     });
     $('#live-auction .auction-pool').shelf({
     'limit':8,
     'putOnValidate':function(auction){
     if(auction.title == 'tttt'){
     return false;
     }
     return true;
     },
     'demand':{
     'type':'live'
     },
     'auctionTemplate':<?php //echo $temp?>
     });
     $(function(){
     $('#featured-auction .auction-pool').shelf().buildHtml();
     $('#live-auction .auction-pool').shelf().buildHtml();

     client.engine.config({
     'engineAuctionInfo':{
     'url':'<?php echo Yii::app()->baseUrl?>/ajax/auctionData/'
     },
     'engineShelf':{
     'url':'<?php echo Yii::app()->baseUrl?>/ajax/auctionShelf/'
     }
     }).run();
     });
     */
     
</script>

</div>
</div>
<div class="region region-sub-footer">
    <div class="container">
        <div class="row">
            <div class="col-xs-3 region region-about-list region-about-list-index">
                <h3 class="list-title">Support</h3>
                <ul class="info-list">
                    <li><a href="<?php echo Yii::app()->baseUrl ?>/Index/TermsandConditions">Terms and Conditions</a></li>
                    <li><a href="<?php echo Yii::app()->baseUrl ?>/Index/Privacy">Privacy</a></li>
                    <li><a href="https://egunner.desk.com/customer/portal/emails/new">Contact us</a></li>
                </ul>
            </div>
            <div class="col-xs-3 region region-about-list region-about-list-index">
                <h3 class="list-title">Help</h3>
                <ul class="info-list">
                    <li><a href="<?php echo Yii::app()->baseUrl ?>/myaccount/index">My Account</a></li>
                    <li><a href="<?php echo Yii::app()->baseUrl ?>/Index/Howitworks">How it works</a></li>
                    <li><a href="<?php echo Yii::app()->baseUrl ?>/Index/faq">FAQ</a></li>
                    <li><a href="<?php echo Yii::app()->baseUrl ?>/buybid/index">Buy Bids</a></li>
                </ul>
            </div>

            <div class="col-xs-3 region region-about-list region-about-list-index" style="display:none;">
                <h3 class="list-title">Social media</h3>

                <div class="col-xs-3region region-social-media">
                    <div class="soci">
                        <a href="https://www.facebook.com/egunnerauctions" class="soci_link" target="_blank"><i
                                class="fa fa-facebook"></i></a>
                        <a href="https://twitter.com/EGunnerAuctions" class="soci_link" target="_blank"><i
                                class="fa fa-twitter"></i></a>
                        <a href="https://egunner.desk.com/customer/portal/emails/new" class="soci_link" target="_blank"><i
                                class="fa fa-envelope-o"></i></a>
                        <a href="https://instagram.com/egunner_auctions/" class="soci_link" target="_blank"><i class="fa fa-instagram"></i></a>
                    </div>
                </div>
            </div>
            <div class="col-xs-3 region region-about-list region-about-list-index ">
                <h3 class="list-title">Email Signup</h3>

                <div class="region region-signup">
                    <div class="notice">
                        News and special offers
                    </div>
                    <form>
                        <div class="input-group">
                            <input type="text" class="form-control" aria-label="..." style="margin-top:0">

                            <div class="input-group-btn">
                                <button type="button" class="btn btn-default btn-send-email">
                                    <span class="glyphicon glyphicon-envelope"></strong></p>
                                </button>
                            </div>
                            <!-- /btn-group -->
                        </div>
                        <!-- /input-group -->
                    </form>
                    
                </div>
            </div>
            <div class="col-xs-3 region region-about-list region-about-list-index last">
            <h3 class="list-title">Contact Egunner</h3>

                    <div class="notice">
                       Contact us by 
                       <a href="https://egunner.desk.com/customer/portal/emails/new">
                       e-mail</a> or call us at
                      859-368-0371 
                    </div>

                    
                    </div>
            </div>
        </div>
    </div>
    <div class='footer'>
    <p class='container container-mine text-left mine-copyright'>
        Copyright © <span class="variable-font-color-gary"></span><a style="float: right;" href="http://www.bbb.org/lexington/business-reviews/guns-and-gunsmiths/buds-gun-shopcom-in-lexington-ky-184205327"  target="_blank"><img style="width:150px;margin-top:-13px;" src="<?php echo Yii::app()->baseUrl ?>/images/bbb.png"></a>eGunner.com</p>
    </p>
	</div>
</div>
</div>
<script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-50888303-4', 'auto');
      ga('send', 'pageview');
</script>
<!-- begin olark code -->
<script data-cfasync="false" type='text/javascript'>/*<![CDATA[*/window.olark||(function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){
f[z]=function(){
(a.s=a.s||[]).push(arguments)};var a=f[z]._={
},q=c.methods.length;while(q--){(function(n){f[z][n]=function(){
f[z]("call",n,arguments)}})(c.methods[q])}a.l=c.loader;a.i=nt;a.p={
0:+new Date};a.P=function(u){
a.p[u]=new Date-a.p[0]};function s(){
a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){
hd="head";return["<",hd,"></",hd,"><",i,' onl' + 'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){
return setTimeout(ld,100)}a.P(1);var j="appendChild",h="createElement",k="src",n=d[h]("div"),v=n[j](d[h](z)),b=d[h]("iframe"),g="document",e="domain",o;n.style.display="none";m.insertBefore(n,m.firstChild).id=z;b.frameBorder="0";b.id=z+"-loader";if(/MSIE[ ]+6/.test(navigator.userAgent)){
b.src="javascript:false"}b.allowTransparency="true";v[j](b);try{
b.contentWindow[g].open()}catch(w){
c[e]=d[e];o="javascript:var d="+g+".open();d.domain='"+d.domain+"';";b[k]=o+"void(0);"}try{
var t=b.contentWindow[g];t.write(p());t.close()}catch(x){
b[k]=o+'d.write("'+p().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}a.P(2)};ld()};nt()})({
loader: "static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]});
/* custom configuration goes here (www.olark.com/documentation) */
olark.identify('2317-172-10-2564');/*]]>*/</script><noscript><a href="https://www.olark.com/site/2317-172-10-2564/contact" title="Contact us" target="_blank">Questions? Feedback?</a> powered by <a href="http://www.olark.com?welcome" title="Olark live chat software">Olark live chat software</a></noscript>
<!-- end olark code -->
</body>
</html>
